<%@ page contentType= "text/html;charset=utf-8" %>

<html>
<%@ include file="../common/base.jsp" %>
<body>
<div id="container">
<%@ include file="../common/header.jsp" %>

	<div id="menu">
		<a href="<c:url value="/common/home.o"/>"><fmt:message key="Home" /></a> > <fmt:message key="Spec" />
	    <div  style="float: right" ><fmt:message key="Logged" />: <c:out value="${currentUser.username}" /> (<a href="<c:url value="/common/logout.o"/>"><fmt:message key="Logout" /></a>)</div>
	</div>
	 
	<div id="midbody">
	    <div id="leftside">
			<br>
			<a href="<c:url value="/spec/manage.o"/>"><fmt:message key="AllSpec" /></a>
			<br><br>
			<a href="<c:url value="/spec/create.o"/>"><fmt:message key="CreateSpec" /></a>
		</div>
		<div id="rightside">
			<div id="bigbox">
			    <div class="title clearfix">
			    	<div style="float: left"><fmt:message key="Spec" /></div>
			    	<%@ include file="../common/hidemenu.jsp" %>
			    </div>
			    <div class="content">
			        <table id="manageSpecs">
			            <tr>
			                <th width="10%"><fmt:message key="Name" /></th>
			                <th><fmt:message key="Description" /></th>
			                <th><fmt:message key="Actions" /></th>
			            </tr>
			            <c:forEach var="spec" items="${stepSpecs}">
			            <tr>
			                <td><c:out value="${spec.name}" /></td>
			                <td><c:out value="${spec.description}" /></td>
			                <td>
			                	<a href="<c:url value="/spec/edit.o?stepSpecId=${spec.id}"/>"><fmt:message key="Edit" /></a>
		                		<a href="<c:url value="/spec/delete.o?stepSpecId=${spec.id}"/>"><fmt:message key="Delete" /></a>
			                </td>
			            </tr>
			            </c:forEach>
			        </table>
				</div>
		
			</div>
		</div>
	</div>
<%@ include file="../common/foot.jsp" %>

</div>
	
</body>
</html>
